Optimal. Leaf size=75 \[ -\frac {b e \sqrt {-1+c x} \sqrt {1+c x}}{c}-\frac {d \left (a+b \cosh ^{-1}(c x)\right )}{x}+e x \left (a+b \cosh ^{-1}(c x)\right )+b c d \text {ArcTan}\left (\sqrt {-1+c x} \sqrt {1+c x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {5956, 471, 94,
211} \begin {gather*} -\frac {d \left (a+b \cosh ^{-1}(c x)\right )}{x}+e x \left (a+b \cosh ^{-1}(c x)\right )+b c d \text {ArcTan}\left (\sqrt {c x-1} \sqrt {c x+1}\right )-\frac {b e \sqrt {c x-1} \sqrt {c x+1}}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 94
Rule 211
Rule 471
Rule 5956
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )}{x^2} \, dx &=-\frac {d \left (a+b \cosh ^{-1}(c x)\right )}{x}+e x \left (a+b \cosh ^{-1}(c x)\right )+(b c) \int \frac {d-e x^2}{x \sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=-\frac {b e \sqrt {-1+c x} \sqrt {1+c x}}{c}-\frac {d \left (a+b \cosh ^{-1}(c x)\right )}{x}+e x \left (a+b \cosh ^{-1}(c x)\right )+(b c d) \int \frac {1}{x \sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=-\frac {b e \sqrt {-1+c x} \sqrt {1+c x}}{c}-\frac {d \left (a+b \cosh ^{-1}(c x)\right )}{x}+e x \left (a+b \cosh ^{-1}(c x)\right )+\left (b c^2 d\right ) \text {Subst}\left (\int \frac {1}{c+c x^2} \, dx,x,\sqrt {-1+c x} \sqrt {1+c x}\right )\\ &=-\frac {b e \sqrt {-1+c x} \sqrt {1+c x}}{c}-\frac {d \left (a+b \cosh ^{-1}(c x)\right )}{x}+e x \left (a+b \cosh ^{-1}(c x)\right )+b c d \tan ^{-1}\left (\sqrt {-1+c x} \sqrt {1+c x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 105, normalized size = 1.40 \begin {gather*} -\frac {a d}{x}+a e x-\frac {b e \sqrt {-1+c x} \sqrt {1+c x}}{c}-\frac {b d \cosh ^{-1}(c x)}{x}+b e x \cosh ^{-1}(c x)+\frac {b c d \sqrt {-1+c^2 x^2} \text {ArcTan}\left (\sqrt {-1+c^2 x^2}\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.95, size = 108, normalized size = 1.44
method | result | size |
derivativedivides | \(c \left (\frac {a \left (e c x -\frac {d c}{x}\right )}{c^{2}}+\frac {b \,\mathrm {arccosh}\left (c x \right ) e x}{c}-\frac {b \,\mathrm {arccosh}\left (c x \right ) d}{c x}-\frac {b \sqrt {c x -1}\, \sqrt {c x +1}\, d \arctan \left (\frac {1}{\sqrt {c^{2} x^{2}-1}}\right )}{\sqrt {c^{2} x^{2}-1}}-\frac {b \sqrt {c x -1}\, \sqrt {c x +1}\, e}{c^{2}}\right )\) | \(108\) |
default | \(c \left (\frac {a \left (e c x -\frac {d c}{x}\right )}{c^{2}}+\frac {b \,\mathrm {arccosh}\left (c x \right ) e x}{c}-\frac {b \,\mathrm {arccosh}\left (c x \right ) d}{c x}-\frac {b \sqrt {c x -1}\, \sqrt {c x +1}\, d \arctan \left (\frac {1}{\sqrt {c^{2} x^{2}-1}}\right )}{\sqrt {c^{2} x^{2}-1}}-\frac {b \sqrt {c x -1}\, \sqrt {c x +1}\, e}{c^{2}}\right )\) | \(108\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 65, normalized size = 0.87 \begin {gather*} -{\left (c \arcsin \left (\frac {1}{c {\left | x \right |}}\right ) + \frac {\operatorname {arcosh}\left (c x\right )}{x}\right )} b d + a x e + \frac {{\left (c x \operatorname {arcosh}\left (c x\right ) - \sqrt {c^{2} x^{2} - 1}\right )} b e}{c} - \frac {a d}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 174 vs.
\(2 (69) = 138\).
time = 0.41, size = 174, normalized size = 2.32 \begin {gather*} \frac {2 \, b c^{2} d x \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + a c x^{2} \cosh \left (1\right ) + a c x^{2} \sinh \left (1\right ) - a c d + {\left (b c d x - b c d + {\left (b c x^{2} - b c x\right )} \cosh \left (1\right ) + {\left (b c x^{2} - b c x\right )} \sinh \left (1\right )\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) + {\left (b c d x - b c x \cosh \left (1\right ) - b c x \sinh \left (1\right )\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) - \sqrt {c^{2} x^{2} - 1} {\left (b x \cosh \left (1\right ) + b x \sinh \left (1\right )\right )}}{c x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {acosh}{\left (c x \right )}\right ) \left (d + e x^{2}\right )}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (a+b\,\mathrm {acosh}\left (c\,x\right )\right )\,\left (e\,x^2+d\right )}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________